<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Google_search extends Front_Controller {
 	var $siteSetings;
	var $announcement;
	var $lineclass;   
	var $des_tags;		//目的地标签   
	var $carclass;
	var $newsclass;
	function __construct()
	{
		parent::__construct();
		$this->load->helper(array('form'));
		$this->load->model('front/Frontget_ml');
		$this->load->model('front/Search_m');
	//	$this->output->enable_profiler(true);
		$this->siteSetings=$this->Frontget_ml->get_site_settings();	//获取站点设置
		$this->announcement=$this->Frontget_ml->get_announcement();	//获取网站公告		
		$this->lineclass=$this->Frontget_ml->get_lineclass();//获取线路分类
		$this->carclass=$this->Frontget_ml->get_carclass();//获取汽车分类
		$this->newsclass=$this->Frontget_ml->get_newsclass();//获取汽车分类
		$this->des_tags=$this->Search_m->get_des_tags();	//获取标签分类
		
	//	$this->load->library('form_validation');	
	}
	public function index()
	{		 
		$line_annex=$this->Frontget_ml->get_line_annex();//获取线路图片附件
		$right_lines=$this->Frontget_ml->get_right_lines();//获取右侧热门线路
		$indexpage_lines=$this->Frontget_ml->get_indexpage_lines($this->lineclass);//获取线路列表
		$commend_lines=$this->Frontget_ml->get_commend_lines();//获取推荐线路列表
		$slider_lines=$this->Frontget_ml->get_slider_lines();//获取幻灯片
		$friend_links=$this->Frontget_ml->get_friend_links();//获取友情链接
		$current_title="搜索：".$_GET["q"];
		$data=array("current_title"=>$current_title,"newsclass"=>$this->newsclass,"carclass"=>$this->carclass,"slider_lines"=>$slider_lines,"siteSetings"=>$this->siteSetings,"lineclass"=>$this->lineclass,"commend_lines"=>$commend_lines,"indexpage_lines"=>$indexpage_lines,"announcement"=>$this->announcement,"right_lines"=>$right_lines,"friend_links"=>$friend_links,"des_tags"=>$this->des_tags);
		$this->load->view('inc/header',$data);
		$this->load->view('google_v');
	}
	
	
}